package com.huaxin.hxmodulesystem.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.huaxin.hxmodulesystem.dto.ResponseResult;
import com.huaxin.hxmodulesystem.dto.request.AddElectricianOrganizationFamilyReqDTO;
import com.huaxin.hxmodulesystem.dto.response.ElectricianScopeDTO;
import com.huaxin.hxmodulesystem.models.ElectricianOrganizationFamily;

import java.util.List;

public interface ElectricianOrganizationFamilyService extends IService<ElectricianOrganizationFamily> {
    // 添加电工组织关系
    ResponseResult<Boolean> addElectricianOrganizationFamily(AddElectricianOrganizationFamilyReqDTO in);

    //删除电工组织关系
    ResponseResult<Boolean> deleteElectricianOrganizationFamily(String id);

    ResponseResult<Boolean> deleteByElectricianIdAndOrgId(String electricianId, String orgId, String familyId);

    //查询电工组织关系
    ResponseResult<List<ElectricianScopeDTO>> electricianScopeList(String electricianId);

    /*
     * 根据家庭ID和组织ID查询电工组织关系
     */
    ResponseResult<List<String>> getElectriciansByFamilyIdAndOrgId(String familyId, String orgId);

    /*
     * 根据组织ID查询电工组织关系
     */
    ResponseResult<List<String>> getElectriciansByOrgId(String orgId);
}
